<?php
/**
 * Created by PhpStorm.
 * User: 王松
 * Time: 2017/7/31 16:58
 */

namespace App\Models\Observer;

use App\Models\Hospital;

class HospitalObserver extends ModelObserverAbstract
{
    public function saved(Hospital $hospital)
    {
        $this->removeCache($hospital);
    }

    public function deleted(Hospital $hospital)
    {
        $this->removeCache($hospital);
    }
}